package com.atguigu.schedule.controller;

import com.atguigu.schedule.service.FaceTrackingService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试人脸识别控制器
 */
@RestController
@RequestMapping("/api/test-face")
@RequiredArgsConstructor
public class TestFaceController {
    
    private final FaceTrackingService faceTrackingService;
    
    @GetMapping("/status")
    public String getStatus() {
        return "Test face controller is working! Service: " + (faceTrackingService != null ? "injected" : "null");
    }
}
